package com.ruoyi.sys.vehile.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 报警(故障)记录对象 tb_alarm_record
 *
 * @author ruoyi
 * @date 2022-05-24
 */
public class TbAlarmRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 报警编号 */
    private Long arId;

    /** 充电桩编号（关联tb_charging_pile） */
    @Excel(name = "充电桩编号", readConverterExp = "关=联tb_charging_pile")
    private Long cpId;

    /** 充电桩名字 */
    @Excel(name = "充电桩名字")
    private String arName;

    /** 状态（0：故障1：无电） */
    @Excel(name = "状态", readConverterExp = "0=：故障1：无电")
    private Long arState;

    /**  最近一次上线时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = " 最近一次上线时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date arDate;

    /** 故障时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "故障时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date arFaulttime;

    /** 故障内容(这个故障内容并不是随便写的，而是几个选项，类似于状态，出现了什么故障，就显示什么状态) */
    @Excel(name = "故障内容(这个故障内容并不是随便写的，而是几个选项，类似于状态，出现了什么故障，就显示什么状态)")
    private String arContent;

    public void setArId(Long arId)
    {
        this.arId = arId;
    }

    public Long getArId()
    {
        return arId;
    }
    public void setCpId(Long cpId)
    {
        this.cpId = cpId;
    }

    public Long getCpId()
    {
        return cpId;
    }
    public void setArName(String arName)
    {
        this.arName = arName;
    }

    public String getArName()
    {
        return arName;
    }
    public void setArState(Long arState)
    {
        this.arState = arState;
    }

    public Long getArState()
    {
        return arState;
    }
    public void setArDate(Date arDate)
    {
        this.arDate = arDate;
    }

    public Date getArDate()
    {
        return arDate;
    }
    public void setArFaulttime(Date arFaulttime)
    {
        this.arFaulttime = arFaulttime;
    }

    public Date getArFaulttime()
    {
        return arFaulttime;
    }
    public void setArContent(String arContent)
    {
        this.arContent = arContent;
    }

    public String getArContent()
    {
        return arContent;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("arId", getArId())
            .append("cpId", getCpId())
            .append("arName", getArName())
            .append("arState", getArState())
            .append("arDate", getArDate())
            .append("arFaulttime", getArFaulttime())
            .append("arContent", getArContent())
            .toString();
    }
}
